<!DOCTYPE html>



  


<html class="theme-next pisces use-motion" lang="zh-Hans">
<head><meta name="generator" content="Hexo 3.9.0">
  <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="theme-color" content="#222">









<meta http-equiv="Cache-Control" content="no-transform">
<meta http-equiv="Cache-Control" content="no-siteapp">
















  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css">







<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css">

<link href="/css/main.css?v=5.1.4" rel="stylesheet" type="text/css">


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png?v=5.1.4">


  <link rel="mask-icon" href="/images/logo.svg?v=5.1.4" color="#222">





  <meta name="keywords" content="Hexo, NexT">










<meta name="description" content="&amp;#x524D;&amp;#x8A00;&amp;#xFF1A;&amp;#x3000;&amp;#x3000;&amp;#x4E4B;&amp;#x524D;&amp;#x5199;&amp;#x8FC7;Android Facebook&amp;#x539F;&amp;#x751F;&amp;#x767B;&amp;#x5F55;&amp;#xFF0C;&amp;#x60F3;&amp;#x7740;&amp;#x65E2;&amp;#x7136;Facebook&amp;#x767B;&amp;#x5F55;&amp;#x5DF2;&amp;#x7ECF;">
<meta property="og:type" content="article">
<meta property="og:title" content="Android Google 原生登录">
<meta property="og:url" content="http://yoursite.com/2019/08/21/Android-Google-原生登录/index.html">
<meta property="og:site_name" content="Silence潇湘夜雨">
<meta property="og:description" content="&amp;#x524D;&amp;#x8A00;&amp;#xFF1A;&amp;#x3000;&amp;#x3000;&amp;#x4E4B;&amp;#x524D;&amp;#x5199;&amp;#x8FC7;Android Facebook&amp;#x539F;&amp;#x751F;&amp;#x767B;&amp;#x5F55;&amp;#xFF0C;&amp;#x60F3;&amp;#x7740;&amp;#x65E2;&amp;#x7136;Facebook&amp;#x767B;&amp;#x5F55;&amp;#x5DF2;&amp;#x7ECF;">
<meta property="og:locale" content="zh-Hans">
<meta property="og:image" content="http://yoursite.com/2019/08/21/Android-Google-原生登录/Google%E9%85%8D%E7%BD%AE.png">
<meta property="og:updated_time" content="2019-08-21T07:47:49.527Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Android Google 原生登录">
<meta name="twitter:description" content="&amp;#x524D;&amp;#x8A00;&amp;#xFF1A;&amp;#x3000;&amp;#x3000;&amp;#x4E4B;&amp;#x524D;&amp;#x5199;&amp;#x8FC7;Android Facebook&amp;#x539F;&amp;#x751F;&amp;#x767B;&amp;#x5F55;&amp;#xFF0C;&amp;#x60F3;&amp;#x7740;&amp;#x65E2;&amp;#x7136;Facebook&amp;#x767B;&amp;#x5F55;&amp;#x5DF2;&amp;#x7ECF;">
<meta name="twitter:image" content="http://yoursite.com/2019/08/21/Android-Google-原生登录/Google%E9%85%8D%E7%BD%AE.png">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Pisces',
    version: '5.1.4',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":true,"scrollpercent":true,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="http://yoursite.com/2019/08/21/Android-Google-原生登录/">





  <title>Android Google 原生登录 | Silence潇湘夜雨</title>
  








</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">Silence潇湘夜雨</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle">Android开发一枚</p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home //首页"></i> <br>
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/about/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user //关于"></i> <br>
            
            关于
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags  //标签"></i> <br>
            
            标签
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/categories/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th //分类"></i> <br>
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive //归档"></i> <br>
            
            归档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-schedule">
          <a href="/schedule/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-calendar //日程表"></i> <br>
            
            日程表
          </a>
        </li>
      
        
        <li class="menu-item menu-item-sitemap">
          <a href="/sitemap.xml" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-sitemap //站点地图"></i> <br>
            
            站点地图
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://yoursite.com/2019/08/21/Android-Google-原生登录/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="Silence潇湘夜雨">
      <meta itemprop="description" content>
      <meta itemprop="image" content="/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Silence潇湘夜雨">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">Android Google 原生登录</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2019-08-21T14:10:12+08:00">
                2019-08-21
              </time>
            

            

            
          </span>

          
            <span class="post-category">
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/登录/" itemprop="url" rel="index">
                    <span itemprop="name">登录</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
          

          
          

          

          
            <div class="post-wordcount">
              
                
                <span class="post-meta-item-icon">
                  <i class="fa fa-file-word-o"></i>
                </span>
                
                  <span class="post-meta-item-text">字数统计&#58;</span>
                
                <span title="字数统计">
                  679
                </span>
              

              
                <span class="post-meta-divider">|</span>
              

              
                <span class="post-meta-item-icon">
                  <i class="fa fa-clock-o"></i>
                </span>
                
                  <span class="post-meta-item-text">阅读时长 &asymp;</span>
                
                <span title="阅读时长">
                  4
                </span>
              
            </div>
          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <h3 id="&#x524D;&#x8A00;&#xFF1A;"><a href="#&#x524D;&#x8A00;&#xFF1A;" class="headerlink" title="&#x524D;&#x8A00;&#xFF1A;"></a>&#x524D;&#x8A00;&#xFF1A;</h3><p>&#x3000;&#x3000;&#x4E4B;&#x524D;&#x5199;&#x8FC7;<a href="https://www.jianshu.com/p/71b5d3739cd6" target="_blank" rel="noopener">Android Facebook&#x539F;&#x751F;&#x767B;&#x5F55;</a>&#xFF0C;&#x60F3;&#x7740;&#x65E2;&#x7136;Facebook&#x767B;&#x5F55;&#x5DF2;&#x7ECF;&#x5199;&#x4E86;&#xFF0C;&#x7D22;&#x6027;&#x628A;Google &#x767B;&#x5F55;&#x4E5F;&#x5199;&#x4E00;&#x4E0B;&#xFF0C;&#x505A;&#x4E00;&#x4E0B;&#x8BB0;&#x5F55;&#x3002;</p>
<h4 id="&#x9996;&#x5148;"><a href="#&#x9996;&#x5148;" class="headerlink" title="&#x9996;&#x5148;"></a>&#x9996;&#x5148;</h4><p>&#x3000;&#x3000;&#x8981;&#x96C6;&#x6210;Google&#x767B;&#x5F55;&#x524D;&#x9996;&#x5148;&#x9700;&#x8981;&#x67E5;&#x9605;<a href="https://developers.google.com/identity/sign-in/android/start?hl=zh-cn" target="_blank" rel="noopener">&#x5B98;&#x65B9;&#x6587;&#x6863;</a>&#xFF0C;&#x5F53;&#x7136;&#x8FD9;&#x4E2A;&#x662F;&#x9700;&#x8981;&#x81EA;&#x5907;&#x68AF;&#x5B50;&#x7684;&#x3002;<br>&#x200B;      </p>
<ul>
<li><p>1&#x3001;&#x67E5;&#x770B;&#x5B98;&#x65B9;demo<br>&#x5982;&#x679C;&#x4F60;&#x662F;&#x7B2C;&#x4E00;&#x6B21;&#x4F7F;&#x7528;Google&#x767B;&#x5F55;&#xFF0C;&#x90A3;&#x4E48;&#xFF0C;&#x6700;&#x7B80;&#x5355;&#x7684;&#x65B9;&#x5F0F;&#x5F53;&#x7136;&#x662F;&#x67E5;&#x770B;&#x5B98;&#x65B9;&#x6587;&#x6863;&#x548C;&#x5B98;&#x65B9;demo&#x4E86;&#x3002;</p>
<p> $ git clone <a href="https://github.com/googlesamples/google-services.git" target="_blank" rel="noopener">https://github.com/googlesamples/google-services.git</a></p>
</li>
<li><p>2&#x3001;&#x914D;&#x7F6E;&#x767B;&#x5F55;&#x9700;&#x8981;&#x7684;&#x914D;&#x7F6E;<br><img src="/2019/08/21/Android-Google-&#x539F;&#x751F;&#x767B;&#x5F55;/Google%E9%85%8D%E7%BD%AE.png" alt="Google&#x767B;&#x5F55;&#x914D;&#x7F6E;"></p>
</li>
</ul>
<p><strong>&#x6CE8;&#x610F;:Google&#x767B;&#x5F55;&#x4EC0;&#x4E48;&#x9700;&#x8981;&#x7684;&#x5BA2;&#x6237;&#x7AEF;ID&#x662F;web&#x7AEF;&#x7684;ID</strong></p>
<h4 id="&#x5176;&#x6B21;"><a href="#&#x5176;&#x6B21;" class="headerlink" title="&#x5176;&#x6B21;"></a>&#x5176;&#x6B21;</h4><ul>
<li>1&#x3001;&#x5F00;&#x59CB;Google&#x767B;&#x5F55;&#x7684;&#x63A5;&#x5165;<br>&#x5728;app&#x4E0B;&#x7684;build.gradle&#x7684;dependencies &#x8282;&#x70B9;&#x4E0B;&#x914D;&#x7F6E;Google&#x670D;&#x52A1;</li>
</ul>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">dependencies {</span><br><span class="line">implementation &apos;com.google.android.gms:play-services-auth:16.0.0&apos;</span><br><span class="line">}</span><br></pre></td></tr></table></figure>

<ul>
<li>2&#x3001;Google&#x767B;&#x5F55;&#x65B9;&#x6CD5;&#x7684;&#x5C01;&#x88C5;</li>
</ul>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br></pre></td><td class="code"><pre><span class="line">public class GoogleLoginManager {</span><br><span class="line"></span><br><span class="line">private static final String TAG = GoogleLoginManager.class.getSimpleName();</span><br><span class="line"> /**</span><br><span class="line">  * &#x521D;&#x59CB;&#x5316;&#x767B;&#x5F55;</span><br><span class="line">  *@params contenxt &#x4E0A;&#x4E0B;&#x6587;</span><br><span class="line">  *@params clientID Google&#x914D;&#x7F6E;&#x5206;&#x914D;&#x7684;&#x5BA2;&#x6237;&#x7AEF;ID</span><br><span class="line">  *@params selfRequestCode &#x81EA;&#x5B9A;&#x4E49;&#x8BF7;&#x6C42;&#x7801;</span><br><span class="line">  */</span><br><span class="line">public static void initGoogle(Activity context, String clientID, int selfRequestCode) {</span><br><span class="line">    GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)</span><br><span class="line">            .requestIdToken(clientID)</span><br><span class="line">            .requestEmail()</span><br><span class="line">            .build();</span><br><span class="line">    GoogleSignInClient mGoogleSignInClient = GoogleSignIn.getClient(context, gso);</span><br><span class="line">    Intent signInIntent = mGoogleSignInClient.getSignInIntent();</span><br><span class="line">    context.startActivityForResult(signInIntent, selfRequestCode);</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line">   /**</span><br><span class="line">  * &#x767B;&#x5F55;&#x56DE;&#x8C03;</span><br><span class="line">  *@params requestCode &#x5BF9;&#x5E94;onActivityResult&#x7684; requestCode</span><br><span class="line">  *@params data &#x5BF9;&#x5E94;onActivityResult&#x7684; data</span><br><span class="line">  *@params selfRequestCode &#x5BF9;&#x5E94;&#x4E0A;&#x9762;&#x521D;&#x59CB;&#x5316;&#x8BF7;&#x6C42;&#x7684;&#x81EA;&#x5B9A;&#x4E49;&#x8BF7;&#x6C42;&#x7801;</span><br><span class="line">  *@params mListener &#x767B;&#x5F55;&#x7ED3;&#x679C;&#x56DE;&#x8C03;</span><br><span class="line">  */</span><br><span class="line">public static void onActivityResult(int requestCode, Intent data, int selfRequestCode,</span><br><span class="line">                                    OnLoginSuccessListener mListener) {</span><br><span class="line">    if (requestCode == selfRequestCode) {</span><br><span class="line">        Task&lt;GoogleSignInAccount&gt; task = GoogleSignIn.getSignedInAccountFromIntent(data);</span><br><span class="line">        handleSignInResult( task, mListener);</span><br><span class="line">    }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>

<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br></pre></td><td class="code"><pre><span class="line">private static void handleSignInResult(@NonNull Task&lt;GoogleSignInAccount&gt; completedTask,</span><br><span class="line">                                       OnLoginSuccessListener mListener) {</span><br><span class="line">    try {</span><br><span class="line">        GoogleSignInAccount account = completedTask.getResult(ApiException.class);</span><br><span class="line">        String idToken = account.getIdToken();</span><br><span class="line">        Log.e(TAG, idToken);</span><br><span class="line">        mListener.onSuccessResult(idToken);</span><br><span class="line">    } catch (ApiException e) {</span><br><span class="line">        e.printStackTrace();</span><br><span class="line">    }</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line">/**</span><br><span class="line"> * &#x9000;&#x51FA;&#x767B;&#x5F55;</span><br><span class="line"> */</span><br><span class="line">public static void GoogleSingOut(Context context, String clientID, final OnGoogleSignOutListener mListener) {</span><br><span class="line">    GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)</span><br><span class="line">            .requestIdToken(clientID)</span><br><span class="line">            .requestEmail()</span><br><span class="line">            .build();</span><br><span class="line">    GoogleSignInClient mGoogleSignInClient = GoogleSignIn.getClient(context, gso);</span><br><span class="line">    mGoogleSignInClient.signOut().addOnCompleteListener((Activity) context, new OnCompleteListener&lt;Void&gt;() {</span><br><span class="line">        @Override</span><br><span class="line">        public void onComplete(@NonNull Task&lt;Void&gt; task) {</span><br><span class="line">            mListener.onSignOutSuccess();</span><br><span class="line">        }</span><br><span class="line">    });</span><br><span class="line">  }</span><br><span class="line"></span><br><span class="line">}</span><br></pre></td></tr></table></figure>







<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br></pre></td><td class="code"><pre><span class="line">/**</span><br><span class="line"> * &#x9000;&#x51FA;&#x767B;&#x5F55;&#x63A5;&#x53E3;</span><br><span class="line"> */</span><br><span class="line">public interface OnGoogleSignOutListener {</span><br><span class="line"></span><br><span class="line">void onSignOutSuccess();</span><br><span class="line"></span><br><span class="line">}</span><br><span class="line">/**</span><br><span class="line"> * &#x767B;&#x5F55;&#x56DE;&#x8C03;&#x63A5;&#x53E3;</span><br><span class="line"> */</span><br><span class="line">public interface OnLoginSuccessListener {</span><br><span class="line"></span><br><span class="line">void onSuccessResult(String result);</span><br><span class="line"></span><br><span class="line">}</span><br></pre></td></tr></table></figure>

<h3 id="&#x6700;&#x540E;"><a href="#&#x6700;&#x540E;" class="headerlink" title="&#x6700;&#x540E;"></a>&#x6700;&#x540E;</h3><p> &#x597D;&#x4E86;&#xFF0C;&#x4E0A;&#x9762;&#x5C31;&#x662F;Google&#x767B;&#x5F55;&#x6240;&#x9700;&#x8981;&#x7684;&#x6240;&#x6709;&#x4E1C;&#x897F;&#x4E86;&#x3002;<strong>&#x5B8C;&#x6574;&#x7684;&#x767B;&#x5F55;&#x6D41;&#x7A0B;&#x5E94;&#x8BE5;&#x662F;&#x8FD9;&#x6837;&#x7684;&#xFF1A;&#x4ECE;Google&#x83B7;&#x53D6;idToken&#xFF0C;&#x7136;&#x540E;&#x53D1;&#x9001;&#x5230;&#x81EA;&#x5DF1;&#x7684;&#x670D;&#x52A1;&#x5668;&#xFF0C;&#x5728;&#x670D;&#x52A1;&#x5668;&#x9A8C;&#x8BC1;&#x901A;&#x8FC7;&#x540E;&#x518D;&#x56DE;&#x8C03;&#x7ED9;&#x5BA2;&#x6237;&#x7AEF;&#x3002;</strong></p>
<h3 id="&#x611F;&#x60F3;"><a href="#&#x611F;&#x60F3;" class="headerlink" title="&#x611F;&#x60F3;"></a>&#x611F;&#x60F3;</h3><p>  &#x6700;&#x8FD1;&#x4E00;&#x76F4;&#x5728;&#x5199;&#x56FD;&#x5916;&#x7684;&#x9879;&#x76EE;&#xFF0C;&#x63A5;&#x89E6;&#x7684;&#x90FD;&#x662F;&#x82F1;&#x6587;&#x6587;&#x6863;&#xFF0C;&#x5728;&#x6B64;&#x65F6;&#x624D;&#x770B;&#x5230;&#x81EA;&#x5DF1;&#x7684;&#x82F1;&#x6587;&#x6C34;&#x5E73;&#x662F;&#x591A;&#x4E48;&#x7684;&#x5DEE;&#xFF0C;&#x6CA1;&#x4E8B;&#x8FD8;&#x662F;&#x9700;&#x8981;&#x591A;&#x770B;&#x770B;&#x82F1;&#x6587;&#x7684;&#x4E1C;&#x897F;&#x3002;&#x63D0;&#x5347;&#x4E0B;&#x81EA;&#x5DF1;&#x7684;&#x82F1;&#x6587;&#x6C34;&#x5E73;&#xFF0C;&#x4EE5;&#x540E;&#x770B;&#x5230;&#x82F1;&#x6587;&#x6587;&#x6863;&#x4E0D;&#x81F3;&#x4E8E;&#x592A;&#x5934;&#x75BC;&#x3002;&#x5982;&#x679C;&#x60F3;&#x4E86;&#x89E3;&#x66F4;&#x591A;&#x6216;&#x8005;&#x6709;&#x4EC0;&#x4E48;&#x4E0D;&#x61C2;&#x7684;&#x5730;&#x65B9;&#xFF0C;&#x53EF;&#x4EE5;&#x52A0;&#x7FA4;<strong>493180098</strong>&#x3002;<br>&#x55EF;&#xFF0C;&#x4E0B;&#x4E00;&#x7BC7;&#x53EF;&#x80FD;&#x4F1A;&#x5199;<strong>Google&#x652F;&#x4ED8;</strong>&#x6216;&#x8005;&#x97E9;&#x56FD;&#x7684;&#x652F;&#x4ED8;&#x5E73;&#x53F0;<strong>OneStore&#x652F;&#x4ED8;</strong></p>

      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/2019/08/21/微信平台配置/" rel="next" title="微信平台配置">
                <i class="fa fa-chevron-left"></i> 微信平台配置
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/2019/08/21/Android-Google应用内支付/" rel="prev" title="Android Google应用内支付">
                Android Google应用内支付 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          

  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <p class="site-author-name" itemprop="name">Silence潇湘夜雨</p>
              <p class="site-description motion-element" itemprop="description">Android开发一枚</p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/archives/">
              
                  <span class="site-state-item-count">55</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-categories">
                <a href="/categories/index.html">
                  <span class="site-state-item-count">16</span>
                  <span class="site-state-item-name">分类</span>
                </a>
              </div>
            

            

          </nav>

          

          
            <div class="links-of-author motion-element">
                
                  <span class="links-of-author-item">
                    <a href="https://github.com/muyishuangfeng" target="_blank" title="GitHub">
                      
                        <i class="fa fa-fw fa-github"></i>GitHub</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="https://www.jianshu.com/u/1e2eec6f972c" target="_blank" title="简书">
                      
                        <i class="fa fa-fw fa-heartbeat"></i>简书</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="https://juejin.im/user/58df0abf61ff4b006b115e43" target="_blank" title="掘金">
                      
                        <i class="fa fa-fw fa-star"></i>掘金</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="https://twitter.com/yangke20792452" target="_blank" title="Twitter">
                      
                        <i class="fa fa-fw fa-twitter"></i>Twitter</a>
                  </span>
                
            </div>
          

          
          

          
          

          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-3"><a class="nav-link" href="#前言："><span class="nav-number">1.</span> <span class="nav-text">前言：</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#首先"><span class="nav-number">1.1.</span> <span class="nav-text">首先</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#其次"><span class="nav-number">1.2.</span> <span class="nav-text">其次</span></a></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#最后"><span class="nav-number">2.</span> <span class="nav-text">最后</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#感想"><span class="nav-number">3.</span> <span class="nav-text">感想</span></a></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      
        <div class="back-to-top">
          <i class="fa fa-arrow-up"></i>
          
            <span id="scrollpercent"><span>0</span>%</span>
          
        </div>
      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; <span itemprop="copyrightYear">2020</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Silence潇湘夜雨</span>

  
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item-icon">
      <i class="fa fa-area-chart"></i>
    </span>
    
      <span class="post-meta-item-text">Site words total count&#58;</span>
    
    <span title="Site words total count">114.8k</span>
  
</div>


  <div class="powered-by">由 <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动</div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">主题 &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Pisces</a> v5.1.4</div>




        







        
      </div>
    </footer>

    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  












  
  
    <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.4"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.4"></script>



  
  


  <script type="text/javascript" src="/js/src/affix.js?v=5.1.4"></script>

  <script type="text/javascript" src="/js/src/schemes/pisces.js?v=5.1.4"></script>



  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.4"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.4"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.4"></script>



  


  




	





  





  












  





  

  

  

  
  

  

  

  

  <!-- 页面点击小红心 -->
<script type="text/javascript" src="/js/src/love.js"></script>
<script src="/live2dw/lib/L2Dwidget.min.js?094cbace49a39548bed64abff5988b05"></script><script>L2Dwidget.init({"model":{"scale":1,"hHeadPos":0.5,"vHeadPos":0.618},"display":{"superSample":2,"width":150,"height":300,"position":"right","hOffset":0,"vOffset":-20},"mobile":{"show":false},"react":{"opacityDefault":0.5,"opacityOnHover":0.5},"log":false,"pluginJsPath":"lib/","pluginModelPath":"assets/","pluginRootPath":"live2dw/","tagMode":false});</script></body>
</html>
